package com.ly.lytestbootkotlin.domain.po

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import lombok.Data
import lombok.EqualsAndHashCode
import lombok.experimental.Accessors
import java.io.Serializable
import java.time.LocalDateTime

/**
 * <p>
 *
 * </p>
 *
 * @author ly
 * @since 2024-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
data class User(
    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    var id: Long? = null,
    @TableField(value = "username")
    var username: String,
    var password: String,
    var nikename: String? = null,
    var age: Int? = null,
    var phone: String? = null,
    var createTime: LocalDateTime? = null,
    var updateTime: LocalDateTime? = null
) : Serializable {
    companion object {
        private const val serialVersionUID: Long = 1L
    }
}
